package cn.slg.test.inherit;

public class Father {
    public boolean is;

    public void print() {

        if (is) {
            System.out.println("我是父亲" + is);
        } else {
            System.out.println("我是父亲" + is);
        }
    }

    public Father(boolean is) {
        this.is = is;
    }
}
